package com.jiamao.goplay;


import android.os.Bundle;

import androidx.lifecycle.ViewModelProviders;

import com.jiamao.goplay.databinding.LayoutBinding;

import me.goldze.mvvmhabit.base.BaseActivity;

public class BaseAc extends BaseActivity<LayoutBinding, AViewModel> {
    @Override
    public int initContentView(Bundle savedInstanceState) {
        return R.layout.layout;
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }
    @Override
    public AViewModel initViewModel() {
        //View持有ViewModel的引用，如果没有特殊业务处理，这个方法可以不重写
        return ViewModelProviders.of(this).get(AViewModel.class);
    }
}
